﻿@namespace SE.PO.CInterface.Web.Pages.DB.Site
@using SE.PO.CInterface.Web.Clients
@using SE.PO.CInterface.Enums
@using SE.PO.CInterface.Web.Pages.DB.Components
@using System.ComponentModel.DataAnnotations
@inject SiteClient Client

<Form
    Model="@Model"
    Style="margin-top: 8px;"
    OnFinish="OnFinish"
    OnFinishFailed="OnFinishFailed"
    @ref="@Form">
    <FormItem Label="下级SCID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="SC编码，下级SCID" @bind-Value="@context.ScId"/>
    </FormItem>
    <FormItem Label="站点编号" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="站点编号，主键，按照集团统一资源库模型编制" Disabled @bind-Value="@context.Id"/>
    </FormItem>
    <FormItem Label="站点名称" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="站点名称" @bind-Value="@context.SiteName"/>
    </FormItem>
    <FormItem Label="站点描述" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="站点描述" @bind-Value="@context.SiteDesc"/>
    </FormItem>
    <FormItem Label="经度" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="经度" @bind-Value="@context.Longitude"/>
    </FormItem>
    <FormItem Label="纬度" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="纬度" @bind-Value="@context.Latitude"/>
    </FormItem>
    <FormItem Label="局站特征" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <EnumSelect TEnum="NodeType?" @bind-Value="@context.NodeFeatures"/>
    </FormItem>
    <FormItem Label="局站类型" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <EnumSelect TEnum="SiteType?" @bind-Value="@context.SiteType"/>
    </FormItem>
    <FormItem Label="区域编号" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <SelectArea Model="@Model" AreaId="@context.AreaId"></SelectArea>
    </FormItem>
</Form>